# demo03_requests.py
import requests
# 请求头: 对请求的描述性信息, User-Agent大全
header = {"User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20100101 Firefox/6.0"}
resp = requests.get(
    "https://www.jianshu.com/", headers=header
)
print(resp.text)

# 200 201 203
# 301 302 305
# 400 401 403 404 405
# 500